package cn.ry.service.impl;


import cn.ry.mapper.SysUserMapper;
import cn.ry.pojo.SysUser;
import cn.ry.service.UserService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @packageName: com.sofwin.service.impl
 * @author: andyliu
 * @date: 2022/7/27 15:20
 * @email 115176513@qq.com
 * @description: TODO
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private SysUserMapper mapper;

    @Override
    public boolean removeUserById(Integer id) {
        return false;
    }

    @Override
    public SysUser queryById(Integer id) {
        return null;
    }

    @Override
    public PageInfo<SysUser> queryByPage(SysUser user, Integer pageNumber, Integer pageSize) {
        PageHelper.startPage(pageNumber,pageSize);
        List<SysUser> users = mapper.selectByExample(null);
        return new PageInfo<>(users);
    }
}
